package com.liaozibo.demo.seckill.support.common.exception;

import lombok.Data;

@Data
public class BizException extends RuntimeException {
    private String code;

    public BizException(String message, String code) {
        super(message);
        this.code = code;
    }

    public BizException(String message, Throwable cause, String code) {
        super(message, cause);
        this.code = code;
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }
}
